import request from '@/router/axios';

//查询所有标签
export const query = () => {
  return request({
    url: '/api/blade-email/label',
    method: 'get'
  })
}
export const queryLabel = () => {
  return request({
    url: '/api/blade-email/label',
    method: 'get'
  })
}
//新增信息
export const save = (row) => {
  return request({
    url: '/api/blade-email/label',
    method: 'post',
    headers:{
      "Content-Type":"application/json"
    },
    data: JSON.stringify(row)
  })
}
//修改信息
export const update = (row) => {
  return request.put(`/api/blade-email/label/${row.id}`, row)
}
//删除标签
export const del = (id) => {
  return request.delete(`/api/blade-email/label/${id}`, {params: {id:id}})
}

